/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package InterfaceGUI;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.Container.*;


public class Januar_KW1 {

public static void main(String[] args) {
       Januar_KW1 gui = new Januar_KW1();
        gui.Januar_KW1();
        }

public void Januar_KW1(){


    JFrame frame = new JFrame("Januar Kalenderwoche 1");

    String[][] zeilen = {
    { "1","","","","","","",""},
    { "","2","","","","","",""},
    { "","","3","","","","",""},
    { "","","","4","","","",""},
    { "","","","","5","","",""},
    { "","","","","","6","",""},
    { "","","","","","","7",""},
    { "","","","","","","","8"},
    { "9","","","","","","",""},
    { "","10","","","","","",""},
    { "","","11","","","","",""},
    { "","","","12","","","",""},
    { "","","","","14","","",""},
    { "","","","","","15","",""},
    { "","","","","","","16",""},
    { "","","","","","","","17"},
    { "18","","","","","","",""},
    { "","19","","","","","",""},
    { "","","20","","","","",""},
    { "","","","21","","","",""},
    { "","","","","22","","",""},
    { "","","","","","23","",""},
    { "","","","","","","24",""},
    { "","","","","","","","25"},
    { "26","","","","","","",""},
    { "","27","","","","","",""},
    { "","","28","","","","",""},
    { "","","","29","","","",""},
    { "","","","","30","","",""},
    { "","","","","","31","",""},

    };

    String[] spalten = {
            "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"
    };

       JTable table = new JTable(zeilen, spalten );



        frame.add( new JScrollPane(table));



        //die Größe des frames wird festgelegt
        frame.setSize(800, 500);

        //der frame wird sichtbar gemacht
        frame.setVisible(true);

}
}

